package lgq.service;

import dao.EmpDAO;
import dao.GetEmpTrainDAO;
import dao.impl.EmpDAOImpl;
import dao.impl.GetEmpTrainDAOImpl;
import vo.GetEmpTrain;

public class GetEmpTrainManager {
	public GetEmpTrain getByEmpIdAndTrainId(int empid,int trainid)
	{
		GetEmpTrainDAO gtd=new GetEmpTrainDAOImpl();
		
		return gtd.getByEmpIdAndTrainId(empid, trainid);
	}
	public GetEmpTrain getByEmpNoAndTrainId(String empno,int trainid)
	{
		EmpDAO ed=new EmpDAOImpl();
		int empid=ed.getIDByEmpno(empno);
		return this.getByEmpIdAndTrainId(empid, trainid);
	}
}
